Use the code to obtain/etc/resolv. the last modification time of the conf file and the file information/etc/resolv. the conf file is the configuration file for DNS domain name resolution. each line starts with a keyword, followed by configuration
/Etc/resolv. after dns is set in conf, the file will be overwritten every time tuserver is restarted. To solve this problem, find some solutions to prevent/etc/resolv. method 1 covered by conf. you need to create a file/etc/resolvconf/resolv. conf.
In centos6, why is resolv. conf always cleared? Recently, the virtual machine virtualbox is installed on the machine, centos6.4 is installed, the free Host Control Panel virtualmin is installed, and a test website is built on the local machine.
In general, we can use resolv. conf in Ubuntu to set the DNS address. After restart, the address in resolv. conf will still return the original content. This is because the resolv. conf file is actually a Link file, and there is a resolvconf service
Modify/etc/resolv. conf and restore it to the original state, etcresolv. conf
Ping: unknown host www.baidu.com ???
Modify/etc/resolv. conf. After the network adapter is restarted,/etc/resolv. conf is restored to the original state.
You
In centos6, why is resolvconf always cleared? recently, the virtual machine virtualbox is installed on the machine, centos64 is installed, the free host control panel virtualmin is installed, and a test website is built on the local machine.
Introduction
The content in the/etc/resolv. conf configuration file in the operating system is generally blank. If the file is incorrectly configured, the SSH, route, and netstat commands will slow down in response.
Adding error content
Ubuntu12.04 resolv after restart. conf clearing Problem 1./etc/resolv. conf is actually a Link. it actually points to/run/resolvconf/resolv. conf2 and Ubuntu have a resolvconf service. if you restart it,/etc/resolv. conf... resolv after Ubuntu 12.04
/Etc/resolv. conf
This file is a DNS domain name resolution configuration file. Its format is very simple. Each line starts with a keyword, followed by configuration parameters.Resolv. conf has four keywords:Nameserver # define the IP address of the
In the RedHat5.5 system of the company, after the/etc/resolv. conf file is configured, the network service is restarted and the file content is rewritten. After reading the official Red Hat documents, the following solutions are provided.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.